package models

// Buydaibi undefined
type Buydaibi struct {
	ID        int64  `json:"id" gorm:"id"`
	Uid       int64  `json:"uid" gorm:"uid"`
	Packageid int64  `json:"packageid" gorm:"packageid"`
	Addtime   int64  `json:"addtime" gorm:"addtime"`
	Status    int64  `json:"status" gorm:"status"`
	Orderno   string `json:"orderno" gorm:"orderno"`
	Qudao     string `json:"qudao" gorm:"qudao"`
	Pricepay  int64  `json:"pricepay" gorm:"pricepay"`
}
type Buydaibisql struct {
	ID        int64   `json:"id" gorm:"id"`
	Uid       int64   `json:"uid" gorm:"uid"`
	Packageid int64   `json:"packageid" gorm:"packageid"`
	Addtime   int64   `json:"addtime" gorm:"addtime"`
	Status    int64   `json:"status" gorm:"status"`
	Orderno   string  `json:"orderno" gorm:"orderno"`
	Qudao     string  `json:"qudao" gorm:"qudao"`
	Phone     string  `json:"phone" gorm:"phone"`       // 手机号
	Nickname  string  `json:"nickname" gorm:"nickname"` // 昵称
	Price     float64 `json:"price" gorm:"price"`
	Daibi     float64 `json:"daibi" gorm:"daibi"`
	Laiyuan   int64   `json:"laiyuan" gorm:"laiyuan"`
}

// TableName 表名称
func (*Buydaibi) TableName() string {
	return "buydaibi"
}

// Userchongzhi undefined
type Userchongzhi struct {
	ID       int64   `json:"id" gorm:"id"`
	Uid      int64   `json:"uid" gorm:"uid"`
	Addtime  int64   `json:"addtime" gorm:"addtime"`
	Price    float64 `json:"price" gorm:"price"`
	State    int64   `json:"state" gorm:"state"`       // 1充值代币2扭蛋机购买 3一番赏购买 4商品购买 5支付运费
	Paystate int64   `json:"paystate" gorm:"paystate"` // 1微信 2支付宝 3微信小程序
	Qudao    string  `json:"qudao" gorm:"qudao"`
}
type Userchongzhisql struct {
	ID       int64   `json:"id" gorm:"id"`
	Uid      int64   `json:"uid" gorm:"uid"`
	Addtime  int64   `json:"addtime" gorm:"addtime"`
	Price    float64 `json:"price" gorm:"price"`
	State    int64   `json:"state" gorm:"state"`       // 1充值代币2扭蛋机购买 3一番赏购买 4商品购买 5支付运费
	Paystate int64   `json:"paystate" gorm:"paystate"` // 1微信 2支付宝 3微信小程序
	Phone    string  `json:"phone" gorm:"phone"`       // 手机号
	Nickname string  `json:"nickname" gorm:"nickname"` // 昵称
	Qudao    string  `json:"qudao" gorm:"qudao"`
	Laiyuan  int64   `json:"laiyuan" gorm:"laiyuan"`
}

// TableName 表名称
func (*Userchongzhi) TableName() string {
	return "userchongzhi"
}
